
FROM golang:latest
LABEL maintainer=xd.he<377597551@qq.com>
COPY . /src/com.yt/
WORKDIR /src/com.yt/
RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,direct

RUN go mod tidy

RUN go build .

EXPOSE 2345
ENTRYPOINT ["./com.yt"]